/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.refund;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;


@Data
public class Refund {
    private int error;
    private Object reason;
    private Object content;

    public void covert(ResponseUtils responseUtils) {
        this.error=responseUtils.getStatus()==1?0:1;
        this.reason=responseUtils.getMsg();
        this.content=responseUtils.getStatus()==1?"退款成功":"退款失败";
    }
}